﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Ad_SiteAnalytic.aspx.cs" Inherits="_Default" %>

<%@ Register Src="../Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>

<%@ Register Src="../Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>

<%@ Register Src="../Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Site Analytics</title>
        <link href="../include/styles.css" rel="stylesheet" />
        
    <script src="../../JScript/gen_validatorv2.js">
    
    </script>
   <script>
   // Removes leading whitespaces
function LTrim( value ) {
	
	var re = /\s*((\S+\s*)*)/;
	return value.replace(re, "$1");
	
}

// Removes ending whitespaces
function RTrim( value ) {
	
	var re = /((\s*\S+)*)\s*/;
	return value.replace(re, "$1");
	
}

// Removes leading and ending whitespaces
function trim( value ) {
	
	return LTrim(RTrim(value));
	
}
       
        function CallWin(id)
        {
            if(trim(document.getElementById("txtdate").value) != '')
            {
                var lblName="lbl"+id;
                var lblObj=document.getElementById(lblName);
                
                
               if(parseInt(lblObj.innerHTML)==0)
               {
                    alert('No Data Found!');
               }
               else
               {
                   window.location.href='Ad_ExportToXls.aspx?dt='+trim(document.getElementById("txtdate").value)+ '&crt='+trim(id);        
               }
                
            }
            else
            {
                alert('Date Is Required To Process The Request. Pls Specify The Date');
            }
            
        }
            
   </script>
</head>
<body>
  
  <form id="SiteAnalytic" runat="server">
    <div>
    
    <table width="100%"  border="0" cellspacing="0" cellpadding="0" id="TABLE1" >

	<!-- Masthead starts from here-->
	
	<uc1:Ad_header ID="Ad_header1" runat="server" />
	
	<!-- Masthead ends here-->
	
  <tr>
    <td></td>
    <td style="width: 953px"><table width="716" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="150" valign="top">
		
		<!-- Left panel starts from here-->
		
		<uc2:Ad_left ID="Ad_left1" runat="server" />
		
		<!-- Left panel ends from here-->
		</td>
        <td width="15" valign="top"><img src="../../images/spacer.gif" width="15" height="1" alt="" /></td>
        <td width="551" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tblborder">
          <tr>
            <td width="2%" style="height: 35px"></td>
            <td width="96%" class="normalblack_12" align="center" style="height: 35px" ><b>
                <asp:Label ID="lblMsg" runat="server" Text="" ForeColor="Red"></asp:Label>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtdate"
                    ErrorMessage="Invalid Date" ValidationExpression="(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d" Display="Dynamic"></asp:RegularExpressionValidator></b></td>
            <td width="2%" style="height: 35px"></td>
          </tr>
          <tr>
            <td style="height: 19px"></td>
            <td align="center" class="normalblack_12" style="height: 19px">
                <asp:Label ID="Label2" runat="server" Text="Label" ForeColor="Green" Visible="False"></asp:Label></td>
            <td style="height: 19px"></td>
          </tr>
          <tr>
            <td height="200"></td>
            <td valign="top" class="normalblack_12" align="center"> 
            
                     <table width="80%" align="center" class="normalgrey_12">
    <tr>
        <td align="right">
            Enter Date
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 275px">
            <asp:TextBox ID="txtdate" runat="server" MaxLength="100"  Width="114px"  ></asp:TextBox>
            <a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.SiteAnalytic.txtdate);return false;" HIDEFOCUS><img class="PopcalTrigger" align="absmiddle" src="../../Images/calbtn.gif" width="34" height="22" border="0" alt="" id="IMG1" /></a>
            <span style="color: red">*</span><asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
         </td>
    </tr>
    <tr>
        <td align="Left" colspan="3">
            Number of Doctors that have accessed their profile 
        </td>
    </tr>
    <tr>
         <td align="right">
            Running
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblDAPR" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="DAPR" onclick='CallWin(this.id);'  >Export</a>
         </td>
    </tr>
    <tr>
         <td align="right">
            Monthly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblDAPM" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
           &nbsp;<a href="#" id="DAPM" onclick='CallWin(this.id);'  >Export</a>
         </td>
    </tr>
    <tr>
         <td align="right">
            Weekly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblDAPW" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="DAPW" onclick='CallWin(this.id);' >Export</a>
         </td>
    </tr>
    <tr>
         <td align="right">
            Daily
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblDAPD" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
           &nbsp;<a href="#" id="DAPD" onclick='CallWin(this.id);' >Export</a>
         </td>
    </tr>
    
    <tr>
        <td align="Left" colspan="3">
           Number of Doctors that have created a new profile  
        </td>
    </tr>
    <tr>
         <td align="right">
            Running
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblDNPR" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="DNPR" onclick='CallWin(this.id);'  >Export</a>
         </td>
    </tr>
    <tr>
         <td align="right">
            Monthly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblDNPM" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="DNPM" onclick='CallWin(this.id);' >Export</a>
         </td>
    </tr>
    <tr>
         <td align="right">
            Weekly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblDNPW" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="DNPW" onclick='CallWin(this.id);' >Export</a>
         </td>
    </tr>
    <tr>
         <td align="right">
            Daily
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblDNPD" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="DNPD" onclick='CallWin(this.id);' >Export</a>
         </td>
    </tr>
         
    <tr>
        <td align="Left" colspan="3">
           Number of Doctor Endorsements   
        </td>
    </tr>
    <tr>
         <td align="right">
            Running
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 140px">
            <asp:Label ID="lblDER" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
         </td>
    </tr>
    <tr>
         <td align="right">
            Monthly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 140px">
            <asp:Label ID="lblDEM" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
         </td>
    </tr>
    <tr>
         <td align="right">
            Weekly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 140px">
            <asp:Label ID="lblDEW" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
         </td>
    </tr>
    <tr>
         <td align="right">
            Daily
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 140px">
            <asp:Label ID="lblDED" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
         </td>
    </tr>
    
   
    <tr>
        <td align="Left" colspan="3">
           Number of New Users  
        </td>
    </tr>
    <tr>
         <td align="right">
            Running
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblUNPR" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="UNPR" onclick='CallWin(this.id);'  >Export</a>
         </td>
    </tr>
    <tr>
         <td align="right">
            Monthly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblUNPM" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="UNPM" onclick='CallWin(this.id);' >Export</a>
         </td>
    </tr>
    <tr>
         <td align="right">
            Weekly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblUNPW" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="UNPW" onclick='CallWin(this.id);' >Export</a>
         </td>
    </tr>
    <tr>
         <td align="right">
            Daily
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 180px">
            <asp:Label ID="lblUNPD" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
            &nbsp;<a href="#" id="UNPD" onclick='CallWin(this.id);' >Export</a>
         </td>
    </tr>
    
    <tr>
        <td align="Left" colspan="3">
           Number of Patient Ratings   
        </td>
    </tr>
    <tr>
         <td align="right">
            Running
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 140px">
            <asp:Label ID="lblUPRR" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
         </td>
    </tr>
    <tr>
         <td align="right">
            Monthly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 140px">
            <asp:Label ID="lblUPRM" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
         </td>
    </tr>
    <tr>
         <td align="right">
            Weekly
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 140px">
            <asp:Label ID="lblUPRW" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
         </td>
    </tr>
    <tr>
         <td align="right">
            Daily
        </td>
        <td style="width: 12px">:</td>
        <td style="width: 140px">
            <asp:Label ID="lblUPRD" runat="server" text="" Width="88px"  BorderStyle="Solid" BorderWidth="1px"></asp:Label>
         </td>
    </tr>
    
        
   
</table>
            
            </td>
            <td></td>
          </tr>
          <tr>
            <td height="20"></td>
            <td></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td></td>
  </tr>
  <tr>
    <td colspan="3" style="height: 30px"></td>
  </tr>
  <tr>
    <td height="1" bgcolor="#CCCCCC"><img src="../../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC" style="width: 953px"><img src="../../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC"><img src="../../images/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
    <td height="20" colspan="3"></td>
  </tr>
  
	<!-- Bottom starts from here-->
	
    <uc3:Ad_footer ID="Ad_footer1" runat="server" />
	
	<!-- Bottom ends here-->
	
</table>

    
    
   
    </div>
    
    </form>
    <iframe width="174" height="189" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="../../JScript/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
    

</body>
</html>

